import request from '@/utils/request'

// 查询不合格军检记录列表父级
export function listNostandard(query) {
  return request({
    url: '/TArmyExamine/TArmyExamine/nostandardlist',
    method: 'get',
    params: query
  })
}

// 查询不合格军检记录列表子级
export function listNostandardChild(id) {
  return request({
    url: '/TArmyExamine/TArmyExamine/nochildlist/' + id,
    method: 'get'
  })
}


// 核验不合格军检记录
export function submitNostandard(data) {
  return request({
    url: '/Nostandard/Nostandard/verifications',
    method: 'post',
    data
  })
}

// 删除不合格军检记录
export function delNostandard(id) {
  return request({
    url: '/Nostandard/Nostandard/' + id,
    method: 'delete'
  })
}


// 查询军检不合格列列表

export function DisqualificationList(query) {
  return request({
    url: '/ArmyExamine/armyExamineDisqualification/list',
    method: 'get',
    params: query
  })
}
// 根据产品id查询不合格记录

export function examineBelowList(query) {
  return request({
    url: '/ArmyExamine/armyExamineDisqualification/examineBelowList',
    method: 'get',
    params: query
  })
}

export function examineBelowList2(query) {
  return request({
    url: '/ArmyExamine/armyExamineDisqualification/examineBelowList2',
    method: 'get',
    params: query
  })
}

// 查询工序列表数据

export function queryProcedure(id) {
  return request({
    url: '/ArmyExamine/armyExamineDisqualification/hearTree/'+id,
    method: 'get'
  })
}

// 报废
export function scrap(id) {
  return request({
    url: '/ArmyExamine/armyExamineDisqualification/scrap/'+id,
    method: 'put'
  })
}

// 让步接收
export function concession(id) {
  return request({
    url: '/ArmyExamine/armyExamineDisqualification/concession/'+id,
    method: 'put'
  })
}

// 返工返修


export function reworkRepair(data) {
  return request({
    url: '/ArmyExamine/armyExamineDisqualification/reworkRepair',
    method: 'post',
    data
  })
}





